package com.link2room.rodimus.mapper;

/**
 * Created by LN on 2018/1/8
 */
public class SignInReissueMapper {
    private String ruleCode;
    private String reissueCode;
    private String rule;
    private String name;
    private String type;

    public String getRuleCode() {
        return ruleCode;
    }

    public void setRuleCode(String ruleCode) {
        this.ruleCode = ruleCode;
    }

    public String getReissueCode() {
        return reissueCode;
    }

    public void setReissueCode(String reissueCode) {
        this.reissueCode = reissueCode;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getRule() {
        return rule;
    }

    public void setRule(String rule) {
        this.rule = rule;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        SignInReissueMapper that = (SignInReissueMapper) o;

        if (ruleCode != null ? !ruleCode.equals(that.ruleCode) : that.ruleCode != null) return false;
        if (reissueCode != null ? !reissueCode.equals(that.reissueCode) : that.reissueCode != null) return false;
        if (name != null ? !name.equals(that.name) : that.name != null) return false;
        if (rule != null ? !rule.equals(that.rule) : that.rule != null) return false;
        return type != null ? type.equals(that.type) : that.type == null;
    }

    @Override
    public int hashCode() {
        int result = ruleCode != null ? ruleCode.hashCode() : 0;
        result = 31 * result + (reissueCode != null ? reissueCode.hashCode() : 0);
        result = 31 * result + (name != null ? name.hashCode() : 0);
        result = 31 * result + (rule != null ? rule.hashCode() : 0);
        result = 31 * result + (type != null ? type.hashCode() : 0);
        return result;
    }
}
